<?php
class Admin_Model_IndexModel extends Zend_Db_Table_Abstract{
	
	protected $_name = 'product';
	protected $_primary = 'idsp';
	
	function showproduct($field, $dk){
		//ket noi csdl
		$db= Zend_Registry::get('connectDB');
		$sql= $db->select()
				->from('product')
				->where($field.'='.$dk);
		$result= $db->fetchAll($sql);
		return $result;
		
	}
}